package com.test.ds.link.linklist;

public class LinkListApp {
	public static void main(String[] args){
		LinkList theList = new LinkList();
		
		theList.inserFirst(22, 2.99);
		theList.inserFirst(44, 4.99);
		theList.inserFirst(66, 6.99);
		theList.inserFirst(88, 8.99);
		
		theList.displayList();
		
		while( !theList.isEnpty()){
			Link aLink = theList.deleteFirst();
			System.out.print("Deleted ");
			aLink.displayLink();
			System.out.println("");
		}
		theList.displayList();
	}
}
